import request from '@/utils/request'

// 查询项目维护列表
export function listMaintenance(query) {
  return request({
    url: '/project/maintenance/list',
    method: 'get',
    params: query
  })
}

// 查询项目维护详细
export function getMaintenance(number) {
  return request({
    url: '/project/maintenance/' + number,
    method: 'get'
  })
}

// 新增项目维护
export function addMaintenance(data) {
  return request({
    url: '/project/maintenance',
    method: 'post',
    data: data
  })
}

// 修改项目维护
export function updateMaintenance(data) {
  return request({
    url: '/project/maintenance',
    method: 'put',
    data: data
  })
}

// 删除项目维护
export function delMaintenance(number) {
  return request({
    url: '/project/maintenance/' + number,
    method: 'delete'
  })
}
